<%--
  Created by IntelliJ IDEA.
  User: JY
  Date: 2022/1/7
  Time: 9:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.15.3/dist/bootstrap-table.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <script src="https://unpkg.com/bootstrap-table@1.15.3/dist/bootstrap-table.min.js"></script>
    <script src="../js/bootstrap-table-zh-CN.min.js"></script>
    <style>
        .DIV_STYLE1{
            margin-left:1000px;
        }
    </style>
</head>
<body>
<div class="x-box-mc">
    <div style="height:780px">
        <div id="locate" style="display:block">
            <table class="TABLE_STYLE2">
                <tbody><tr height="20" class="TR_STYLE1">
                    <td class="TD_HANDBOOK_STYLE1"><span style="color: blue;font-family:华文宋体"><marquee width=400 direction=left align=middle><span>您正在做的业务是：产品设计--产品档案管理--产品档案查询</span></marquee></span></td>
                </tr>
                <tr height="20" class="TR_STYLE1">
                    <td class="TD_STYLE3">
                        <div class="DIV_STYLE1">
                            <input type="submit" onmouseover="this.className='btn3_mouseover'" onmouseout="this.className='btn3_mouseout'" onmousedown="this.className='btn3_mousedown'" onmouseup="this.className='btn3_mouseup'" class="btn3_mouseout" value="查询" onclick="cha()">
                        </div></td>
                </tr>
                </tbody></table>
            <script language="javascript">
                var onecount;
                subcat = new Array();
                subcat[0] = new
                Array("2","电子/计算机","电子");
                onecount=1;
                function changelocation(locationid)
                {
                    timeLocateValidation.select2.length = 0;
                    var locid=locationid;
                    var i;
                    timeLocateValidation.select2.options[timeLocateValidation.select2.length]=new Option("","");
                    for (i=0;i < onecount; i++)
                    {
                        if(locid==""||locid==null){timeLocateValidation.select2.options[timeLocateValidation.select2.length]=
                            new Option(subcat[i][1],subcat[i][1]);}//如果select1为空，则select2选择全部值
                        else if (subcat[i][2] == locid)
                        {
                            timeLocateValidation.select2.options[timeLocateValidation.select2.length] = new Option(subcat[i][1],
                                subcat[i][1]);
                        }
                    }
                }
                var onecount1;
                subcat1 = new Array();
                subcat1[0] = new Array("2","电子/计算机/服务器","电子/计算机");
                onecount1=1;
                function changelocation1(locationid1)
                {
                    timeLocateValidation.select3.length = 0;
                    var locid1=locationid1;
                    var j;
                    timeLocateValidation.select3.options[timeLocateValidation.select3.length]=new Option("","");
                    for (j=0;j < onecount1; j++)
                    {
                        if(locid1==""||locid1==null)
                        {timeLocateValidation.select3.options[timeLocateValidation.select3.length]=new Option(subcat1[j][1],subcat1[j][1]);}
                        else if (subcat1[j][2] == locid1){
                            timeLocateValidation.select3.options[timeLocateValidation.select3.length] = new Option(subcat1[j][1],subcat1[j][1]);
                        }
                    }
                }
                var onecount2;
                subcat2 = new Array();
                onecount2=0;
                function changelocation2(locationid2)
                {
                    timeLocateValidation.select4.length = 0;
                    var locid2=locationid2;
                    var m;
                    timeLocateValidation.select4.options[timeLocateValidation.select4.length]=new Option("","");
                    for (m=0;m < onecount2; m++)
                    {
                        if(locid2==""||locid2==null)
                        {timeLocateValidation.select4.options[timeLocateValidation.select4.length]=new Option(subcat2[m][1],subcat2[m][1]);}
                        else if (subcat2[m][2] == locid2){
                            timeLocateValidation.select4.options[timeLocateValidation.select4.length] = new Option(subcat2[m][1],subcat2[m][1]);
                        }
                    }
                }
            </script>
            <table bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000" border="0" cellspacing="1" cellpadding="1" bgcolor="#EEEEEE" align="center" class="TABLE_STYLE1" id="theObjTable">
                <tbody><tr height="20" class="TR_STYLE1">
                    <td bgcolor="#f0f8ff" bordercolorlight="#000000" bordercolordark="#000000" align="left" height="20" class="TD_STYLE1" width="20%">请选择产品I级分类</td>
                    <td valign="top" bgcolor="#eeeeee" bordercolor="#000000" class="TD_STYLE2" width="80%"><select class="SELECT_STYLE1" name="firstKindName" style="width: 30%;">
                        <option></option>
                        <option value="电子">电子</option>
                    </select></td>
                </tr>
                <tr height="20" class="TR_STYLE1">
                    <td bgcolor="#f0f8ff" bordercolorlight="#000000" bordercolordark="#000000" align="left" height="20" class="TD_STYLE1" width="20%">请选择产品II级分类</td>
                    <td valign="top" bgcolor="#eeeeee" bordercolor="#000000" class="TD_STYLE2" width="80%"><select class="SELECT_STYLE1" name="secondKindName" onchange="changelocation1(timeLocateValidation.select2.options[timeLocateValidation.select2.selectedIndex].value)" style="width: 30%;"><script language="JavaScript">
                        //if (timeLocateValidation.select1.value){ 如果select1没做出选择时，想让select2的值为空，则加上这个条件
                       // changelocation(timeLocateValidation.select1.value)
                        //}
                    </script><option></option><option value="计算机">电子/计算机</option>
                    </select></td>
                </tr>
                <tr height="20" class="TR_STYLE1">
                    <td bgcolor="#f0f8ff" bordercolorlight="#000000" bordercolordark="#000000" align="left" height="20" class="TD_STYLE1" width="20%">请选择产品III级分类</td>
                    <td valign="top" bgcolor="#eeeeee" bordercolor="#000000" class="TD_STYLE2" width="80%"><select class="SELECT_STYLE1" name="thirdKindName" style="width: 30%;"><script language="JavaScript">
                        //if (timeLocateValidation.select2.value){ 如果select2没做出选择时，想让select3的值为空，则加上这个条件
                        //changelocation1(timeLocateValidation.select2.value)
                        //}
                    </script><option></option><option value="服务器">电子/计算机/服务器</option>
                    </select></td>
                </tr>
                <tr height="20" class="TR_STYLE1">
                    <td bgcolor="#f0f8ff" bordercolorlight="#000000" bordercolordark="#000000" align="left" height="20" class="TD_STYLE1" width="20%">请选择产品用途类型</td>
                    <td valign="top" bgcolor="#eeeeee" bordercolor="#000000" class="TD_STYLE2" width="80%"><select class="SELECT_STYLE1" name="type" style="width: 30%;">
                        <option></option>
                        <option value="Y001-1">商品</option>
                        <option value="Y001-2">物料</option>
                        <option value="部件">部件</option>
                        <option value="委外部件">委外部件</option>
                        <option value="外购商品">外购商品</option>
                        <option value="受托产品">受托产品</option>
                        <option value="服务型产品">服务型产品</option>
                    </select></td>
                </tr>
                <tr height="20" class="TR_STYLE1">
                    <td bgcolor="#f0f8ff" bordercolorlight="#000000" bordercolordark="#000000" align="left" height="20" class="TD_STYLE1" width="20%">请输入建档时间</td>
                    <td valign="top" bgcolor="#eeeeee" bordercolor="#000000" class="TD_STYLE2" width="80%"><input type="date" class="INPUT_STYLE1" name="registerTime" onfocus="" id="date_start" style="width: 14%"><%--至<input type="date" class="INPUT_STYLE1" name="timeb" onfocus="" id="date_end" style="width: 14%">--%>（YYYY-MM-DD）</td>
                </tr>
               </tbody></table>
           <%-- <script type="text/javascript">
                Calendar.setup ({inputField : "date_start", ifFormat : "%Y-%m-%d", showsTime : false, button : "date_start", singleClick : true, step : 1});
                Calendar.setup ({inputField : "date_end", ifFormat : "%Y-%m-%d", showsTime : false, button : "date_end", singleClick : true, step : 1});
            </script>--%>
        </div>
     <%--   <div id="key_locate" style="display:none">
            <table class="TABLE_STYLE2">
                <tbody><tr height="20" class="TR_STYLE1">
                    <td class="TD_HANDBOOK_STYLE1">您正在做的业务是：产品设计--产品档案管理--产品档案查询</td>
                </tr>
                <tr height="20" class="TR_STYLE1">
                    <td class="TD_STYLE3">
                        <div class="DIV_STYLE1"><input type="submit" onmouseover="this.className='btn3_mouseover'" onmouseout="this.className='btn3_mouseout'" onmousedown="this.className='btn3_mousedown'" onmouseup="this.className='btn3_mouseup'" class="SUBMIT_STYLE1" value="查询">&nbsp;<input type="button" onmouseover="this.className='btn3_mouseover'" onmouseout="this.className='btn3_mouseout'" onmousedown="this.className='btn3_mousedown'" onmouseup="this.className='btn3_mouseup'" class="BUTTON_STYLE1" value="返回" onclick="back();"></div>

                    </td>
                </tr>
                </tbody></table>

            <table bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000" border="0" cellspacing="1" cellpadding="1" bgcolor="#EEEEEE" align="center" class="TABLE_STYLE1" id="theObjTable">
                <tbody><tr height="20" class="TR_STYLE1">
                    <td bgcolor="#D2E9FF" bordercolorlight="#000000" bordercolordark="#000000" align="left" height="20" class="TD_STYLE1" width="20%">请输入关键字</td>
                    <td valign="top" bgcolor="#eeeeee" bordercolor="#000000" class="TD_STYLE2" width="80%"><input type="text" class="INPUT_STYLE1" name="keyword" style="width: 30%"></td>
                </tr>
                </tbody></table>--%>
        </div>
    </div>
</div>
</body>
<script>
    function cha() {
        $.ajax({
            type: "post",
            url: "/dfile/sersion",
            contentType:"application/json;charset=utf-8",
            data:JSON.stringify({
                firstKindName:document.getElementsByName("firstKindName")[0].value,
                secondKindName:document.getElementsByName("secondKindName")[0].value,
                thirdKindName:document.getElementsByName("thirdKindName")[0].value,
                type:document.getElementsByName("type")[0].value,
            }),
            dataType:"json",
            success:function (data) {
                if(data==1){
                    window.location.href="/jy/queryReview.jsp";
                }
            },error:function (data) {
                alert("zhu")
            }
        })
    }
</script>
</html>
